import request from '@/utils/request'

// 查询物品出库列表
export function listGoodsOut(query) {
  return request({
    url: '/goods/goodsOut/list',
    method: 'get',
    params: query
  })
}

// 查询物品出库详细
export function getGoodsOut(outId) {
  return request({
    url: '/goods/goodsOut/' + outId,
    method: 'get'
  })
}

// 新增物品出库
export function addGoodsOut(data) {
  return request({
    url: '/goods/goodsOut',
    method: 'post',
    data: data
  })
}

// 修改物品出库
export function updateGoodsOut(data) {
  return request({
    url: '/goods/goodsOut',
    method: 'put',
    data: data
  })
}

// 删除物品出库
export function delGoodsOut(outId) {
  return request({
    url: '/goods/goodsOut/' + outId,
    method: 'delete'
  })
}
